/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package com.crmapi.mapper;

import com.crmapi.pojo.Customer;
import com.crmapi.pojo.Receive;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>Project: CRMSystem - CustomerMapper</p>
 * <p>Powered by yzc On 2023-11-23 09:16:03</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */

@Mapper
public interface CustomerMapper {

    //条件查询
    List<Customer> queryList(String name,Integer source,Integer level,Integer followStatus,Integer status);

    //添加客户
    int insertCustomer(Customer customer);

    //批量删除
    int del(List<String> ids);


   //跟新客户
   int updateCustomer(Customer customer);


   //领取客户
    int receive(Receive receive);

  //放回公海
  int radiance(List<String> ids);

  //查询全部客户
    List<Customer> queryAll();

    //根据id差联系人
    String queryContact(String id);
}
